<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>jQuery SpeedyValidate Plugin</title>

	<style>
	
	.success {
		background: url(validate_ok.gif) no-repeat;
		padding: 3px;
		padding-left: 30px;
		margin-left: 10px;
		color: green;
	}
	
	.failure {
		background: url(validate_failed.gif) no-repeat;
		padding: 3px;
		padding-left: 30px;
		margin-left: 10px;
		color: red;
	}
	
	
	</style>

</head>
<body>


    <form id="myform" action="#">
    
    
        <p>This should do a simple check to determine if the field is filled out</p>
        
        <p><label for="form_name">Name: </label>
        <input type="text" id="form_name" name="name" value="" class="validate[notext,required]" /></p>
        
        <p><label for="form_name">Email: </label>
        <input type="text" id="form_name" name="name" value="" class="validate[required,email]" /></p>
        
        <p><label for="form_name">Postcode: </label>
        <input type="text" id="form_name" name="name" value="" class="validate[required,uk_postcode]" /></p>
    
    
    	<p><label for="form_name">Password: </label>
        <input type="text" id="pass" name="name" value="" class="validate[required,minlength,6]" /></p>
        
        <p><label for="form_name">Confirm Password: </label>
        <input type="text" id="confirm_pass" name="name" value="" class="validate[required,confirm,pass]" /></p>
    
    
    </form>



	<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
	<script type="text/javascript" src="jquery.speedyvalidate.js"></script>

	<script type="text/javascript">
	
		$(document).ready(function() {

			$('#myform').speedyValidate();
		
		
		
		
		});
	
	</script>


</body>
</html>
